package com.lagou.filter;

import org.apache.dubbo.rpc.*;


//@Activate(group = {CommonConstants.CONSUMER,CommonConstants.PROVIDER})
public class DubboInvokeFilter1 implements Filter {

    public Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcException {
//        long   startTime  = System.currentTimeMillis();
//        try {
//            // 执行方法
            return  invoker.invoke(invocation);
//        } finally {
//            System.out.println("invoke time:"+(System.currentTimeMillis()-startTime) + "毫秒");
//        }

    }
}
